package com.ruoyi.blog.mapper;

import com.ruoyi.blog.domain.BlogLabel;
import com.ruoyi.blog.domain.vo.BlogArticleVo;
import com.ruoyi.blog.domain.vo.BlogLabelVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 博客标签Mapper接口
 *
 * @author ruoyi
 * @date 2023-10-01
 */
public interface BlogLabelMapper extends BaseMapperPlus<BlogLabelMapper, BlogLabel, BlogLabelVo> {

    @Select("select * from blog_label where label_id in (select label_id from blog_article_label where article_id = #{articleId})")
    List<BlogLabel> selectListByArticle(BlogArticleVo n);

}
